package com.example.product.Vo;

import com.example.product.enums.ResponseEnum;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @description:
 * @author: sanjin
 * @date: 2019/4/2 20:39
 */
@Data
@NoArgsConstructor
public class ResponseVo {
    private int code;
    private String message;
    private Object data;

    public ResponseVo(ResponseEnum responseEnum) {
        this.code = responseEnum.getCode();
        this.message = responseEnum.getMessage();
    }
}
